/*
 * joystickDriver.h
 *
 * Created: 17.09.2012 10:02:16
 *  Author: vegardvo
 */ 


#ifndef JOYSTICKDRIVER_H_
#define JOYSTICKDRIVER_H_

#define UPPER_THRESHOLD 200
#define LOWER_THRESHOLD 55

typedef enum joystickDir {CENTER, LEFT, RIGHT, UP, DOWN};

struct joystickPos
{
	int x_pos;
	int y_pos;
};

struct joystickDirection
{
	enum joystickDir x_dir;
	enum joystickDir y_dir;
};	

 enum buttons
 {JOY,A,B};

 struct sliderPos
 {
	 int L_pos;
	 int R_pos;
 };
 
struct sliderPos inputDriver_slider_getPos();
struct joystickPos inputDriver_joystick_getPos();
struct joystickDirection inputDriver_joystick_getDir();
int getButton(enum buttons button);


#endif /* JOYSTICKDRIVER_H_ */